package com.shuiyun.jtt.utils.codec;

import io.netty.buffer.ByteBuf;
import lombok.Data;

/**
 * @author shuiyun
 * @description 输入参数
 * @date 2022-04-16 17:03
 */
@Data
public class InputData {

    private FieldValue fieldValue;

    private Object data;

    private ByteBuf buf;

    private Class<?> clazz;


    public InputData(FieldValue fieldValue, Object data, ByteBuf buf) {
        this.fieldValue = fieldValue;
        this.data = data;
        this.buf = buf;
    }

    public InputData(FieldValue fieldValue, Object data, ByteBuf buf, Class<?> clazz) {
        this.fieldValue = fieldValue;
        this.data = data;
        this.buf = buf;
        this.clazz = clazz;
    }
}
